`timescale 1ns / 1ps

module tb_fread();


integer fd;
integer code;
reg [15:0] arr [0:7];
initial
begin
    fd = $fopen("./test.bin", "rb");
    
    #10;
    code = $fread(arr, fd, 0, 8);
    #10;

    $fclose(fd);

    $display("Done.");
    $stop;
end

endmodule
